<template>
  <div class="App">
    <h1>Count子组件</h1> 
    <button @click="count++">累加{{count}}</button>
    <button @click="$destroy()">卸载自己</button>
  </div>
</template>
<script>
export default {
  name: 'Count',
  data() {
    return {
     count: 10
    }
  },
}
</script>
<style scoped>
  
</style>